package org.noootsab.gae.games.tzaar.service;

import org.noootsab.gae.games.tzaar.model.Game;
import org.noootsab.gae.games.tzaar.model.Player;

import javax.jdo.annotations.*;
import java.util.List;

/**
 * User: sandy
 * Date: 22-mars-2010
 * Time: 22:41:44
 */
public interface GameService {
    public List<Game> getAllGamesFor(Player player);

    public List<Game> getAllAccessibleGamesFor(Player player);

    public Game createGame(Game game, Player creator);

    public void update(Game game);

    public Game getGameByKey(String key);

    public Game getGameById(String id);

    public void endGame(Game game, Boolean black);
}
